<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title>在线考试</title>
<link href="/static/exam/paper/main.css" rel="stylesheet" type="text/css" />
<link href="/static/exam/paper/iconfont.css" rel="stylesheet" type="text/css" />
<link href="/static/exam/paper/test.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/static/exam/layui/css/layui.css"  media="all">
<style>
.hasBeenAnswer {
	background: #5d9cec;
	color:#fff;
}

</style>
<script>
	$(function () {
		$.get('{:url("exam/common/check")}',function(data){
			if(data == '0'){
				alert("请先登录！")
				top.location.href='{:url("exam/login/homeLogin")}'
			}
		},"json")
	})
</script>
</head>

<body>


    <div style="padding: 20px; background-color: #F2F2F2;">
        <div class="layui-row layui-col-space15">
    
          <div class="layui-col-md3">
            <div class="layui-card" style="height: 40px;">
              <div class="layui-card-header">考生: {$Think.session.userdata.name}</div>
            </div>
          </div>
 
          <div class="layui-col-md3">
            <div class="layui-card" style="height: 40px;">
              <div class="layui-card-header">试卷名: {$pname}</div>
            </div>
          </div>



        </div>
      </div> 



	<div class="main">
		<!--nr start-->
		<div class="test_main">
			<div class="nr_left">
				<div class="test">
					<form action="{:url('exam/paper/dospaper')}" method="post">
						<div class="test_title">
							<p class="test_time">
								<i class="icon iconfont">&#xe6fb;</i><b class="alt-1">01:40</b>
              </p>
			  <input type="hidden" name="pname" value="{$pname}">
			  <input type="hidden" name="subject" value="{$subject}">
              <input type="hidden" name="userid" value="{$Think.session.userdata.id}">
              <input type="hidden" name="ctime" value='<?php echo date("Y-m-d") ?>' />
							<font><input type="submit" id="tjiao" name="test_jiaojuan" value="交卷"></font>
						</div>
						
							<div class="test_content">
								<div class="test_content_title">
									<h2>单选题</h2>
									<p>
										<span>共</span><i class="content_lit">20</i><span>题，</span><span>合计</span><i class="content_fs">60</i><span>分</span>
									</p>
								</div>
							</div>
							<div class="test_content_nr">

                                {volist name="pList" id="vo" key="k"}  
								<ul>					
										<li id="qu_0_0">
											<div class="test_content_nr_tt">
												<i>{$k}</i><span>(1分)</span><font>{$vo.content}</font><b class="icon iconfont">&#xe881;</b>
											</div>

											<div class="test_content_nr_main">
												<ul>
										    		<li class="option">
															
															<input type="radio" class="radioOrCheck" value="{$vo.id}|A" data-num="{$vo.id}" id="answer{$k}" name="answer{$k}[]" />
															<label for="0_answer_1_option_1">
																A.
																<p class="ue" style="display: inline;">{$vo.sa}</p>
															</label>
														</li>

														<li class="option">
															
															<input type="radio" class="radioOrCheck" value="{$vo.id}|B" data-num="{$vo.id}" id="answer{$k}" name="answer{$k}[]" />
															<label for="0_answer_1_option_1">
																B.
																<p class="ue" style="display: inline;">{$vo.sb}</p>
															</label>
														</li>

														{if ($vo.type !=1)}
														<li class="option">
															
															<input type="radio" class="radioOrCheck" value="{$vo.id}|C" data-num="{$vo.id}" id="answer{$k}" name="answer{$k}[]" />
															<label for="0_answer_1_option_1">
																C.
																<p class="ue" style="display: inline;">{$vo.sc}</p>
															</label>
														</li>

														
														<li class="option">	
															<input type="radio" class="radioOrCheck" value="{$vo.id}|D" data-num="{$vo.id}" id="answer{$k}" name="answer{$k}[]" />
															<label for="1_answer_30_option_4">
																D.
																<p class="ue" style="display: inline;">{$vo.sd}</p>
															</label>
														</li>
														{/if}
														<li class="option" style="display: none;">	
															<input type="radio"  class="radioOrCheck" value="{$vo.id}|E" checked data-num="{$vo.id}" id="answer{$k}" name="answer{$k}[]" />
															<label for="1_answer_30_option_4">
																D.
																<p class="ue" style="display: inline;">{$vo.sd}</p>
															</label>
														</li>
													
													
												</ul>
												
												
                                                
                                           
											</div>
										
										</li>
                                    </ul>
                                {/volist}
								</div>
							</form>
						</div>
						
					
				</div>

			</div>

		</div>
		<!--nr end-->
		<div class="foot"></div>
	</div>

	<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
	<script src="/static/exam/paper/jquery.easy-pie-chart.js"></script>
	<!--时间js-->
    <script src="/static/exam/paper/time/jquery.countdown.js"></script>
    <script type="text/javascript" src="/static/exam/artDialog/artDialog.js?skin=black"></script>
	<script>
		window.jQuery(function($) {
			"use strict";
			
			$('time').countDown({
				with_separators : false
			});
			$('.alt-1').countDown({
				css_class : 'countdown-alt-1'
			});
			$('.alt-2').countDown({
				css_class : 'countdown-alt-2'
			});
			
		});
		
		

    </script>
    


    <script >
        $(function(){
            $("#tjiao").click(function(){
                              
              $("#tjiao").attr()
                

            })
        })

    </script>


</body>

</html>